package com.yl.model.entity;


import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yl.config.JsonLongSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author ：jerry
 * @date ：Created in 2021/10/26 下午2:37
 * @description：菜单角色
 * @version: V1.1
 */
@TableName("t_role_menu")
@Data
public class RoleMenuEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("Id")
    @JsonSerialize(using = JsonLongSerializer.class )		//Long类型长度过长，导致精度丢失方案
    private Long id;

    @ApiModelProperty("角色id")
    private Long roleId;

    @ApiModelProperty("菜单id")
    private Long menuId;

    @ApiModelProperty("是否删除")
    private Boolean is_del;				//状态
}
